ABSTRACT
The World Health Organization (WHO) has publicized a global public health emergency due to the COVID-19 coronavirus pandemic. Wearing a mask in public can provide protection against the spread of disease. Tremendous progress has been made in object detection in recent times, thanks in large part to deep learning models, which have shown encouraging results when it comes to recognizing objects in images. Recent technological developments have made this progress possible. Wearing a mask in public is one way to prevent the transmission of COVID-19 from others. Our study employs You Only Look Once (YOLO) v7 to determine whether a subject is wearing a mask, and then divides them into three groups depending on the degree to which they are wearing a mask correctly (none, bad, and good). In this study, we merged two datasets, the Face Mask Dataset (FMD) and the Medical Mask Dataset (MMD), to conduct our experiment. These models' evaluations and ratings include crucial criteria. According to our data, YOLOv7 achieves the highest mAP (98.5%) in the "Good"class. © 2023 IEEE.